{template('../public/header.html')}

<!--标签列表-->
<div class="pad_10" >

	<form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<input type="hidden" name="m" value="admin" />
                <input type="hidden" name="c" value="tag" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
				所属模型：
                <select name="module_id">
					<option value="">--请选择模型--</option>
					{$module_list type='rs'}
						<option value="{$module_list("id")}" {if module_id=CLng(module_list("id"))} style="background:#92C2D9"  selected="selected" {/if}>{$module_list("title")}</option>
					{/$module_list}
                </select>&nbsp;&nbsp;
                关键字 :
                <input name="keyword" type="text" class="input-text" size="25" value="{$search('keyword')}" />
                <input type="submit" name="search" class="btn" value="搜索" />
        	</div>
            </td>
            </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('tag/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="25"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="50">序号</th>
                <th align="left"><span data-tdtype="order_by" data-field="name">标签名称</span></th>
                <th width="100" align='left'><span data-tdtype="order_by" data-field="module_id">所属模型</span></td>
                <th width="100" align='center'>文档ID</td>
                <th width="120">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
			{$rs type='rs' pagesize='0' }
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
                <td align="center">{:p*20-20+k}</td>
                <td align="left"><span data-tdtype="edit" data-field="name" data-id="{$rs('id')}" class="tdedit">{$rs('name')}</span></td>
				<td align='left'>{if rs("module_id")<>0}{:moduleName(rs("module_id"))}{/if}</td>
				<td align='center'>{$rs('arcid')}</td>
                <td align="center">
                	<a href="javascript:;" class="J_showdialog" data-uri="{:U('tag/edit?id='& rs('id') )}" data-title="{:L('edit')} - {$rs('name')}"  data-id="edit" data-acttype="ajax" data-width="450" data-height="50">{:L('edit')}</a> | 
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('tag/delete?id='& rs('id') )}" data-msg="您确定要删除“<font color=blue>{$rs('name')}</font>”吗？">{:L('delete')}</a>
                </td>
            </tr>
			{$k++}
            {/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="4">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
    	</tbody>
    </table>
    </div>

    <div class="btn_wrap_fixed">
    	<label><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('tag/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
    	<div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>

</div>
{template('../public/footer.html')}
</body>
</html>
